{assign var="meta" value="<meta http-equiv=\"refresh\" content=\"5\" />"}
{include file="inc/header.tpl"}
<div id = "content">
<h3>Chat room: "{$room_name}"</h3>

<div id="panels" class="clear-float">
<div id="first-panel-list" class="panel-col">
        <div class="panel show_spaces" id="show_spaces">
          <h2>Who's online:</h2>
<div class="panel-body">
  <ul class="spaces-list" id="my-spaces-list">
     {foreach from=$online_users item=i name=foo3}
     <a href="/admin/userlist/profile{if $i.user_password==''}guest{/if}/{$i.user_id}/">{$i.user_login}</a> |
	 {if !$smarty.foreach.foo3.index%10 && !$smarty.foreach.foo3.index==0}<br />{/if} 
	{foreachelse}
	no users
	{/foreach}
  </ul>
  </div>
 </div>
 </div>
 <!--panels -->
 </div>
 
{foreach from=$messages item=item}
<span style="background-color:{cycle values="#ccc, #eee"}; display:block; padding:1px; margin:1px;width:90%">
{$item.chat_created} <b>{$item.user_login}</b>: {$item.chat_message}</span>
{/foreach}<br />

<a href="/admin/room/write/{$room_id}/">write message</a><br />
<a href="{$path}">refresh</a><br />

<a href="/admin/chat/login/2/" target="_blank">login as other person</a><br />
</div>
</body>

</html>